package com.example.demo.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.pojo.Blog;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public interface BlogService {
    List<Blog> listBlogTopTen();
    Blog selectBlogById(Integer id);
    Integer InsertBlog(Blog blog);
    Integer DeleteBlog(Integer id);
    Integer UpdateBlog(Integer id,Blog blog);
    IPage<Blog> listBlog(Integer list);
    List<Blog> listBlogSearch(String title);
}
